/*
 * Created on 2006-4-20 22:41:21
 */
package cn.com.sbell.vss.csg.vsclient;

import cn.com.sbell.vss.csg.vsclient.dahua.DaHuaVsClient;
import cn.com.sbell.vss.csg.vsclient.hikvision.HikVisionDVRClient;
import cn.com.sbell.vss.csg.vsclient.ipcamera.IPCameraClient;


/**
 * @author liang.a.chen
 */
public class VsClientFactory {

//	public static final String VENDOR_ACCELLA = "ACCELLA";

	public static final String VENDOR_HIKVISION = "HIKVISION";

	public static final String VENDOR_DAHUA = "DAHUA";

	public static final String VENDOR_IPCAMERA = "PANASONIC";

	public static VsClient getVsClientInstance(AccessInfo access) {
		VsClient vsClient = null;
 
		if (VENDOR_HIKVISION.equalsIgnoreCase(access.vsVendor)) {
			vsClient = new HikVisionDVRClient(access);
		} else if (VENDOR_IPCAMERA.equalsIgnoreCase(access.vsVendor)) {
			vsClient = new IPCameraClient(access);
		} else {
			vsClient = new DaHuaVsClient(access);
		} 

//		vsClient.init();
		return vsClient;
	}
}
